﻿using ERPSystem.Common.DTO;
using MediatR;

namespace SalesManagementWrite.API.SalesManagementWrites.PurchaseReturnOrderes
{
    public class PurchaseReturnOrderUpdateCommand:IRequest<Result>
    {
        /// <summary>
        /// 主键自增
        /// </summary>
        public int PurchaseReturnOrderId { get; set; }
        /// <summary>
        /// 单据编码
        /// </summary>

        public string? PurchaseReturnOrderNo { get; set; }
        /// <summary>
        /// 流水号
        /// </summary>

        public string? PurchaseReturnOrderSerialNumber { get; set; }
        /// <summary>
        /// 业务类型
        /// </summary>

        public int BusinessType { get; set; }//业务类型
        /// <summary>
        /// 采购单号
        /// </summary>

        public string? PurchaseOrderNo { get; set; }//采购单号
        /// <summary>
        /// 备注信息
        /// </summary>

        public string? DescInfo { get; set; }
        /// <summary>
        /// 单据日期
        /// </summary>

        public DateTime? DocumentDate { get; set; }
        /// <summary>
        /// 操作员
        /// </summary>

        public string? Operator { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>

        public string? Supplier { get; set; }
        /// <summary>
        /// 单据状态
        /// </summary>

        public int DocumentsStatus { get; set; }
        /// <summary>
        /// 审核员
        /// </summary>

        public string? Audit { get; set; }//审核员 
        /// <summary>
        /// 退货仓库
        /// </summary>

        public int ReturnsWarehouse { get; set; }
        /// <summary>
        ///业务状态
        /// </summary>

        public int BusinessStatus { get; set; }
        /// <summary>
        /// 审核日期
        /// </summary>

        public DateTime? AuditDate { get; set; }
        /// <summary>
        /// 退货原因
        /// </summary>

        public int ReasonForReturn { get; set; }
        public List<PurchaseReturnOrderSubtableDto> purchaseReturnOrderSubtableDtos { get; set; }
    }
}
